home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6040 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: asciizero@aol.com (ASCII zero)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: I can't print the date in the format I want.
  5. Date: 22 Feb 1996 05:30:48 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4ghgko$474@newsbf02.news.aol.com>
  9. References: <3129e355.114134@news.iquest.net>
  10. Reply-To: asciizero@aol.com (ASCII zero)
  11. NNTP-Posting-Host: newsbf02.mail.aol.com
  12.  
  13. In a message posted on 20 Feb 1996 15:45:41 GMT, rclark@iquest.net wrote:
  14.  
  15. >>printf("-> %i", debug);      /* can we get the length of the formatted
  16. string? */
  17.  
  18. >Yes. Use the srtlen() function (#include <string.h>).
  19.  
  20. >> getchar();                    /*OK up to this point? */
  21.  
  22. >"Code has no effect."
  23.  
  24. Thank you for pointing this out. Please observe that the only reason I
  25. inserted *int debug* and getchar() was because I DO NOT have a debugger at
  26. my disposal. I thought that if I could get the length of the formatted
  27. string by *extracting* the return value of strftime(), then I would know
  28. that str was indeed formatted. The getchar() function was just there as a
  29. breakpoint before the crash. This code is just a test code for strftime,
  30. which I was trying to insert into my actual program.
  31.  
  32.